package com.ndky.Demo5;

import java.util.Scanner;

public class MyClass {
    public static void main(String[] args) {
        Scanner myObj = new Scanner(System.in);
        System.out.println("输入用户名");

        String userName = myObj.nextLine();
        System.out.println("用户名是：" + userName);
    }
}